import urllib.request

# 当前要抓取的url网址
url = 'https://www.gushiwen.cn/'
response = urllib.request.urlopen(url)
# print(response)
# 获取响应状态码
# print(response.getcode())
# 获取请求的url地址
# print(response.geturl())
# 获取响应数据
print(response.read().decode())